import static org.junit.Assert.*;

import org.junit.Test;


public class SortingTest1 {

	@Test
	public final void testQuickSort() {
		Sorting sort = new Sorting(10);
		int[] array = {3,4,5,6,7,1,2,0,8,9};
		sort.setArray(array);
		sort.quickSort(sort.getArray(), 10);
		int[] res = {0,1,2,3,4,5,6,7,8,9};
		int[] res2 = sort.getArray();
		for (int i=0; i < array.length; i++){
			assertEquals(res2[i], res[i]);
		}
	}

}
